package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

public class UserBlacklist extends DataObject {
    private long userId;               //玩家编号
    private long blacklistUserServerId; //黑名单玩家区服编号
    private long blacklistUserId;      //黑名单玩家编号
    private boolean isDelete;          //是否删除
    private UserBaseInfo userBaseInfo;  //玩家信息
    private long lastAddBlackListTime;  //最后一次拉黑时间
    private int type;                   //黑名单类型，0：聊天；1：厢房；2：联姻

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getBlacklistUserId() {
        return blacklistUserId;
    }

    public void setBlacklistUserId(long blacklistUserId) {
        if(this.blacklistUserId != blacklistUserId) {
            this.blacklistUserId = blacklistUserId;
            setUpdateOption();
        }
    }

    public boolean isDelete() {
        return isDelete;
    }

    public void setDelete(boolean delete) {
        if(this.isDelete != delete) {
            isDelete = delete;
            setUpdateOption();
        }
    }

    public long getBlacklistUserServerId() {
        return blacklistUserServerId;
    }

    public void setBlacklistUserServerId(long blacklistUserServerId) {
        this.blacklistUserServerId = blacklistUserServerId;
    }

    public UserBaseInfo getUserBaseInfo() {
        return userBaseInfo;
    }

    public void setUserBaseInfo(UserBaseInfo userBaseInfo) {
        this.userBaseInfo = userBaseInfo;
    }

    public long getLastAddBlackListTime() {
        return lastAddBlackListTime;
    }

    public void setLastAddBlackListTime(long lastAddBlackListTime) {
        if(this.lastAddBlackListTime != lastAddBlackListTime) {
            this.lastAddBlackListTime = lastAddBlackListTime;
            setUpdateOption();
        }
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        if(this.type != type) {
            this.type = type;
            setUpdateOption();
        }
    }
}
